
<%@ page language="java" pageEncoding="GBK"%>
<%@ include file="/common/taglibs.jsp"%>

<c:out value="${current_location}" escapeXml="false" />

<table class="tb_input" cellspacing="1" width="100%">
    <html:form action="/business/application/saveAppApplication" method="post" styleId="appApplicationForm" onsubmit="return validateAppApplicationForm(this)">

        <tr style="display:none">
            <td colspan="100">
                <html:hidden property="nid"/>
            </td>
        </tr>

        <tr>
            <td noWrap class="td_title" width="15%">
                <stl:label styleClass="desc" key="appApplicationForm.sname"/>
            </td>

            <td class="td_detail" width="85%">

                <html:text property="sname" styleId="sname"/>
                <html:errors property="sname"/>
            </td>
        </tr>

        <tr>
            <td noWrap class="td_title" width="15%">
                <stl:label styleClass="desc" key="appApplicationForm.spath"/>
            </td>

            <td class="td_detail" width="85%">

                <html:text property="spath" styleId="spath"/>
                <html:errors property="spath"/>
            </td>
        </tr>

        <tr>
            <td noWrap class="td_title" width="15%">
                <stl:label styleClass="desc" key="appApplicationForm.sstatus"/>
            </td>

            <td class="td_detail" width="85%">

                <html:text property="sstatus" styleId="sstatus"/>
                <html:errors property="sstatus"/>
            </td>
        </tr>

        <tr>
            <td noWrap class="td_title" width="15%">
                <stl:label styleClass="desc" key="appApplicationForm.sdesc"/>
            </td>

            <td class="td_detail" width="85%">

                <html:text property="sdesc" styleId="sdesc"/>
                <html:errors property="sdesc"/>
            </td>
        </tr>

        <tr>
            <td noWrap class="td_title" width="15%">
                <stl:label styleClass="desc" key="appApplicationForm.sowner"/>
            </td>

            <td class="td_detail" width="85%">

                <html:text property="sowner" styleId="sowner"/>
                <html:errors property="sowner"/>
            </td>
        </tr>

        <tr>
            <td noWrap class="td_title" width="15%">
                <stl:label styleClass="desc" key="appApplicationForm.dcreate"/>
            </td>

            <td class="td_detail" width="85%">

                <html:text property="dcreate" styleId="dcreate" readonly="true"/>
                <html:img page="/images/calendar.gif" styleClass="icon" onclick="javascript:popUpDefaultCalendar(this, appApplicationForm.dcreate);" />

                <html:errors property="dcreate"/>
            </td>
        </tr>

        <tr>
            <td noWrap class="td_title" width="15%">
                <stl:label styleClass="desc" key="appApplicationForm.dupdate"/>
            </td>

            <td class="td_detail" width="85%">

                <html:text property="dupdate" styleId="dupdate" readonly="true"/>
                <html:img page="/images/calendar.gif" styleClass="icon" onclick="javascript:popUpDefaultCalendar(this, appApplicationForm.dupdate);" />

                <html:errors property="dupdate"/>
            </td>
        </tr>

        <tr>
            <td noWrap class="td_title" width="15%">
                <stl:label styleClass="desc" key="appApplicationForm.sprocess"/>
            </td>

            <td class="td_detail" width="85%">

                <html:text property="sprocess" styleId="sprocess"/>
                <html:errors property="sprocess"/>
            </td>
        </tr>

        <tr>
            <td noWrap class="td_title" width="15%">
                <stl:label styleClass="desc" key="appApplicationForm.sorg"/>
            </td>

            <td class="td_detail" width="85%">

                <html:text property="sorg" styleId="sorg"/>
                <html:errors property="sorg"/>
            </td>
        </tr>

        <tr>
            <td noWrap class="td_title" width="15%">
                <stl:label styleClass="desc" key="appApplicationForm.sstopUri"/>
            </td>

            <td class="td_detail" width="85%">

                <html:text property="sstopUri" styleId="sstopUri"/>
                <html:errors property="sstopUri"/>
            </td>
        </tr>

        <tr>
            <td noWrap class="td_title" width="15%">
                <stl:label styleClass="desc" key="appApplicationForm.sstartUri"/>
            </td>

            <td class="td_detail" width="85%">

                <html:text property="sstartUri" styleId="sstartUri"/>
                <html:errors property="sstartUri"/>
            </td>
        </tr>

        <tr style="display:none">
            <td colspan="100">
                <html:hidden property="${appApplicationForm.wtSysFunctionId}" value="1" />
                <html:hidden property="${appApplicationForm.wtSysScopeId}" value="1" />
                <html:hidden property="${appApplicationForm.wtSysScopeId2}" value="1" />
                <html:hidden property="perPageSize" />
                <html:hidden property="pageNumber" />
                <html:hidden property="totalCount" />
            </td>
        </tr>

        <tr align="right">
            <td colspan="100" noWrap class="td_input">
                <html:submit styleClass="button" property="method.save" onclick="bCancel=false">
                    <fmt:message key="button.save"/>
                </html:submit>

                <c:if test="${operationParam == 'edit'}">
                    <html:submit styleClass="button" property="method.delete" onclick="bCancel=true; return confirmDelete('appApplication')">
                        <fmt:message key="button.delete"/>
                    </html:submit>
                </c:if>

                <html:cancel styleClass="button" onclick="bCancel=true">
                    <fmt:message key="button.cancel"/>
                </html:cancel>
            </td>
        </tr>
    </html:form>
</table>

<script type="text/javascript">
    Form.focusFirstElement($('appApplicationForm'));
    highlightFormElements();
</script>

<html:javascript formName="appApplicationForm" cdata="false" dynamicJavascript="true" staticJavascript="false"/>
<script type="text/javascript" src="<html:rewrite page="/scripts/validator.jsp"/>"></script>